package com.example.othree.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangmiaohang
 * @since 2024-11-24
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="MainCrops对象", description="")
public class MainCrops {

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "区县")
    private String county;

    @ApiModelProperty(value = "年分")
    private String year;

    @ApiModelProperty(value = "作物名称")
    @TableField("crops_name")
    private String cropsName;

    @ApiModelProperty(value = "种植面积")
    @TableField("sow_area")
    private Integer sowArea;

    @ApiModelProperty(value = "单位产量")
    @TableField("unit_product")
    private Integer unitProduct;

    @ApiModelProperty(value = "总产量")
    @TableField("total_product")
    private Integer totalProduct;

    @ApiModelProperty(value = "产值")
    @TableField("output_value")
    private Integer outputValue;

}
